package com.callback4;

public class Person {
	Inteface inteface;

	public Person(Inteface inteface) {
		this.inteface = inteface;
	}

	public int getState() {
		return inteface.onState();
	}

	void on1(String ss) {
		inteface.onSleeping(ss);
	}

	void on2(String s) {
		inteface.onEating(s);
	}
	void on3(boolean isWalking){
		inteface.onWalking(isWalking);
	}
}
